package net.oschina.esb.timer;

import net.oschina.esb.core.timer.AbstractTimer;
import net.oschina.esb.core.timer.Period;
import net.oschina.esb.core.timer.SecondPeriod;
import org.springframework.stereotype.Component;

/**
 * @author Arvin
 * @time 2018/4/11 21:34
 */
@Component
public class SimpleTimer extends AbstractTimer {
    @Override
    public Period getPeriod() {
        return new SecondPeriod(1);
    }

    @Override
    public void start() {

        System.out.println("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
    }
}
